package com.xhwl.data.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.xhwl.common.dto.cent.sdata.EnterpriseDTO;
import com.xhwl.common.pojo.cent.sdata.EnterprisePermission;

import java.util.List;

/**
 * @description: 企业与权限关联
 * @author: lianghz
 * @create: 2020-11-25
 **/
public interface IEnterprisePermissionService extends IService<EnterprisePermission> {

    void save(Integer enterpriseId, List<Integer> permissionIdList);

    List<Integer> list(List<Integer> enterpriseIdList);

    void deleteEnterprisePermission(List<Integer> enterpriseIdList, List<Integer> permissionIdList);

    void saveV2(EnterpriseDTO enterpriseDTO, List<Integer> permissionIdList);

}
